package org.jeecg.modules.externalEquity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.externalEquity.entity.TbExternalEquity;

import java.util.List;

/**
 * @Description: 4、对外股权投资
 * @Author: jeecg-boot
 * @Date:   2025-04-23
 * @Version: V1.0
 */
public interface TbExternalEquityMapper extends BaseMapper<TbExternalEquity> {

    @Select("select * from tb_external_equity ORDER BY SUBSTRING(org_code, 1, 6) ASC, LENGTH(org_code) ASC, org_code ASC")
    List<TbExternalEquity> selectAllCodeASC();

    List<TbExternalEquity> selectSummerList(TbExternalEquity tbExternalEquity);
}
